/**********************************************************************
 *@Project： clouddemo
 *@File: SessionConfig
 *@Date: 2017/4/15
 *@Copyright (C) 2013-2017 http://www.posun.cn. All Rights Reserved.
 ***********************************************************************
 *注意： 本内容仅限于深圳市普盛实业有限公司内部使用，禁止外泄
 **********************************************************************
 */
package com.posun.edu.system.config;

/**
 * <p>
 * TODO<br>
 *
 * @author YL
 * @version 1.0
 * @createTime 2017/4/15 17:14
 * @ChangeLog
 */
public class HttpSessionConfig {

   /* @Bean
    public HttpSessionListener httpSessionListener() {
        return new SessionListener();
    }

    *//**
     * 实现子域名共用session
     *
     * @return
     *//*
    @Bean
    public CookieSerializer cookieSerializer() {
        DefaultCookieSerializer serializer = new DefaultCookieSerializer();
        serializer.setCookieName("JSESSIONID");
        serializer.setCookiePath("/");
        serializer.setDomainNamePattern("^.+?\\.(\\w+\\.[a-z]+)$");
        return serializer;
    }*/
}
